package com.snowj.apaas.service.impl;

import com.snowj.apaas.domain.auto.UserGroups;
import com.snowj.apaas.repository.auto.UserGroupsMapper;
import com.snowj.apaas.service.UserGroupsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserGroupsServiceImpl implements UserGroupsService {

    private final UserGroupsMapper userGroupsMapper;

    public UserGroupsServiceImpl(UserGroupsMapper userGroupsMapper) {
        this.userGroupsMapper = userGroupsMapper;
    }

    /**
     * 列出用户组列表
     *
     * @return
     */
    @Override
    public List<UserGroups> listUserGroups() {
        return userGroupsMapper.select(c -> c);
    }
}
